import {
  handlerGetUrlParams
} from '@/utils/dealUrlParams.js'
import request from '@/utils/request'

export function getLinkManageList(param) {
  const url = handlerGetUrlParams('/linkColumn/linkColumn/list', param)
  return request({
    url,
    method: 'GET',
  })
}

export function editLinkManage(data) {
  return request({
    url: '/linkColumn/linkColumn',
    method: 'PUT',
    data
  })
}

export function getTimeLimit(code) {
  return request({
    url: `/bus/openconfig/open/${code}`,
    method: 'GET',
  })
}